<%@ page language="java" pageEncoding="UTF-8"%>
<script type="text/javascript">
 $(function(){
	 $('#wdry_import_dept').combotree({
			lines:true,
			url:'deptAction!do_combotree.action',
			panelHeight:260,
			required:true,
			editable:false,
			idField:'id',
			textField:'text',
			parentField:'pid',
			 onBeforeSelect: function(node) {
		            if (!$(this).tree('isLeaf', node.target)) {
		                return false;
		            }
		        },
		        onClick: function(node) {
		            if (!$(this).tree('isLeaf', node.target)) {
		                $('#wdry_import_dept').combo('showPanel');
		            }
		        }
		});  
 });
</script>
<div align="center" style="padding:5px">
	<form method="post" id="wdry_import_form">
		<table class="t2">
			<tr>
				<th width="80">所属机构：</th>
				<td width="380"><input id="wdry_import_dept"  name="deptId"  style="width:320px" /></td>
			</tr>
			<tr>
				<th>上传文件：</th>
				<td>
					<div class="file-box" >
						<input type='text' name='textfield' id='wdry_textfield' class='txt1' style="width:250px;"/> 
						<input type='button' class='l-btn' style="width:60px;height:24px;" value='浏览...' />
						<input type="file" name="file" class="file1" id="wdry_import_file" size="32" onchange="document.getElementById('wdry_textfield').value=this.value" />
					</div>
				</td>
			</tr>
			<tr>
				<th>模板下载：</th>
				<td><a href="${pageContext.request.contextPath}/common/module/wdry.xls" style="text-decoration:none;">网点人员导入数据模板</a>
			</tr>
		</table>
	</form>
</div>